package kosta.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class BoardController {
	@RequestMapping("/board_main.do")
	public String home(){
		System.out.println("home tiles~");
		/*
		 * Controller 의 메서드 반환값 (viewName) 과 tiles-def-home.xml 의
		 * definition name="home" 과 매칭된다.
		 */
		return "home.main";
	}
	@RequestMapping("/basic_board.do")
	public String basicBoard(){
		return "basic.board";
	}
	@RequestMapping("/detail_board.do")
	public String detailBoard(){
		return "detail.board";
	}
	@RequestMapping("/guestbook_board.do")
	public String guestbookBoard(){
		return "guestbook.board";
	}
	@RequestMapping("/AAMmusic_board.do")
	public String aamMusicBoard(){
		return "AAMmusic.board";
	}
	@RequestMapping("admin_board.do")
	public String adminBoard(){
		return "admin.board";
	}
}
